<template>
	<view>
		<view class="text-list">
			<view class="text-item" v-for="(item,index) in list" :key="index" @click="$emit('copyClick',item.desc)">
				<view class="text-item-left">{{item.title}}</view>
				<view class="text-item-centext">{{item.desc}}</view>
				<view class="text-item-right">{{item.btn}}</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		props:{
			list:Array
		},
		data(){
			return{
				
			}
		}
	}
</script>

<style lang="scss">
	.text-list{
		background-color: #FFF0CA;
		border-radius: 20rpx;
		padding: 30rpx;
		.text-item:last-child{
			padding: 0;
		}
		.text-item{
			padding-bottom: 40rpx;
			display: flex;
			align-items: center;
			justify-content: space-between;
			.text-item-left{
				font-size: 14px;
				color: #666666;
				width: 200rpx;
			}
			.text-item-centext{
				flex: 1;
				font-size: 15px;
				color: #333333;
			}
			.text-item-right{
				padding: 5rpx 10rpx;
				background-color: #C52B21;
				border-radius: 10rpx;
				color: #ffffff;
				font-size: 12px;
			}
		}
	}
</style>